﻿{$header}<div id="main" class="main" >
    <div class="content">
  <h3 class="heading">访客跟踪 [ <a href="__URL__">返回列表</a> ]</h3>
<div id="result" class="result none"></div>
<form class="form-horizontal well" method='post' id="form1" action="__URL__/update/">
<table cellpadding=3 cellspacing=3 >
<tr>
	<td class="tRight" >访客：{$vo.user_day_no}  ({$vo.create_time|toDate})</td>
	<td class="tLeft">{$vo.location_name}({$vo.ip} ) </td>
</tr>
<tr>
	<td class="tRight" colspan="2" >入店来源: {$vo.ref_type}
<a href="{$vo.ref}">{$vo.ref}</a></td></tr>
<tr>
	<td class="tLeft" colspan="2">搜索关键词: {$vo.search_key} </td>
</tr>
<tr>
	<td class="tRight" colspan="2">宝贝ID：{$vo.baobei_id}  ({$vo.title})</td>
</tr>
<tr>
	<td class="tLeft">当前访问地址:  <a href="{$vo.url}"> {$vo.url} </a> </td>
</tr>
<tr>
    <td colspan="4">备注: <textarea name="remark" rows="1" class="span12">{$vo.remark}</textarea> </td>
</tr>
<tr>
	<td></td>
	<td class="center">
        <input type="hidden" value="{$vo.id}" name="id">
	<button type="submit" class="btn btn-primary"><i class="icon-ok icon-white"></i> 保存</button>
	<button type="reset" onclick="javascript:history.back()" class="btn btn-primary offset1"><i class="icon-arrow-left icon-white"></i> 返回</button>
	</td>
</tr>
</table>
</form>
<php>
$map = array(
  'order_source_id'=> $vo['order_source_id'],
  'user_day_no' => $vo['user_day_no'],
  'create_time' => array('between',($vo['create_time']-6*60*60).','.($vo['create_time']+6*60*60)),
);
$logs = M('Weblog')->where($map)->field('url,title,create_time')->order('create_time asc')->findAll();
</php>
<table class="table table-bordered">
    <tr>
        <td>访问时间</td><td>被访问页面</td>
    </tr>
    <volist name="logs" id="log">
    <tr>
        <td>{$log.create_time|toDate}</td>
        <td><a href="{$log.url}"> {$log.title}</a></td>
    </tr>
    </volist>
</table>
</div>
</div>
